
path = "C:\\Users\\Administrator\\Desktop\\test\\1594895.jpg"

file = open(path, 'rb')
img = file.read()                 # 读取二进制文件


s_file = open("C:\\Users\\Administrator\\Desktop\\test\\1594895-2.jpg", 'wb')       # 打开一个文件用于保存二进制信息
s_file.write(img)
s_file.close()

file.close()

"""
保存二进制文件的模式： wb
"""
